package com.renrendoc.network.flow.beans;


public class NginxLogEvent {
    public String sk; // 站点key
    public String si; // sessionid
    public String ci; // 客户端id
    public String u; // 当前页面url
    public String ru; // 来源url
    public String et; // 事件类型
    public String tt; // 当前页面标题

    public String ua; // user_agent

    public String cs; // 客户端自定义参数

    public String v; // 版本号
    public String ep; // 事件位置 关联et参数有不同的表现形式
    public String wh; // 宽高
    public String rnd; // 随机数

    public String ip; // ip

    public long ts; // 事件发生时间 后端nginx获取的时间


    public NginxLogEvent setSk(String sk) {
        this.sk = sk;
        return this;
    }

    public NginxLogEvent setSi(String si) {
        this.si = si;
        return this;
    }

    public NginxLogEvent setCi(String ci) {
        this.ci = ci;
        return this;
    }

    public NginxLogEvent setU(String u) {
        this.u = u;
        return this;
    }

    public NginxLogEvent setRu(String ru) {
        this.ru = ru;
        return this;
    }

    public NginxLogEvent setEt(String et) {
        this.et = et;
        return this;
    }

    public NginxLogEvent setTt(String tt) {
        this.tt = tt;
        return this;
    }

    public NginxLogEvent setUa(String ua) {
        this.ua = ua;
        return this;
    }

    public NginxLogEvent setCs(String cs) {
        this.cs = cs;
        return this;
    }

    public NginxLogEvent setV(String v) {
        this.v = v;
        return this;
    }

    public NginxLogEvent setEp(String ep) {
        this.ep = ep;
        return this;
    }

    public NginxLogEvent setWh(String wh) {
        this.wh = wh;
        return this;
    }

    public NginxLogEvent setRnd(String rnd) {
        this.rnd = rnd;
        return this;
    }

    public NginxLogEvent setIp(String ip) {
        this.ip = ip;
        return this;
    }

    public NginxLogEvent setTs(long ts) {
        this.ts = ts;
        return this;
    }

    public NginxLogEvent(String sk, String si, String ci, String u, String ru, String et, String tt, String v, String ep, String cs, String wh, String rnd, long ts) {
        this.sk = sk;
        this.si = si;
        this.ci = ci;
        this.u = u;
        this.ru = ru;
        this.et = et;
        this.tt = tt;
        this.v = v;
        this.ep = ep;
        this.cs = cs;
        this.wh = wh;
        this.rnd = rnd;
        this.ts = ts;
    }

    public NginxLogEvent() {
    }

    @Override
    public String toString() {
        return "NginxLogEvent{" +
                "sk='" + sk + '\'' +
                ", si='" + si + '\'' +
                ", ci='" + ci + '\'' +
                ", u='" + u + '\'' +
                ", ru='" + ru + '\'' +
                ", et='" + et + '\'' +
                ", tt='" + tt + '\'' +
                ", ua='" + ua + '\'' +
                ", cs='" + cs + '\'' +
                ", v='" + v + '\'' +
                ", ep='" + ep + '\'' +
                ", wh='" + wh + '\'' +
                ", rnd='" + rnd + '\'' +
                ", ip='" + ip + '\'' +
                ", ts=" + ts +
                '}';
    }
}
